import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';

ClassicsFooter buildClassicsFooter(GlobalKey<RefreshFooterState> key) {
  return ClassicsFooter(
    key: key,
    bgColor: Color(0xFFF5F5F5),
    textColor: Color(0xFF999999),
    loadText: '上拉加载更多',
    loadReadyText: '松开立即加载',
    loadingText: '数据加载...',
    loadedText: '加载完成',
    noMoreText: '加载完成',
  );
}

ClassicsHeader buildClassicsHeader(GlobalKey<RefreshHeaderState> key) {
  return ClassicsHeader(
    key: key,
    bgColor: Color(0xFFF5F5F5),
    textColor: Color(0xFF999999),
    refreshText: '下拉刷新',
    refreshReadyText: '松开立即刷新',
    refreshingText: '数据刷新...',
    refreshedText: '刷新完成',
  );
}

//class FooterView extends RefreshFooter {
//
//  FooterView({
//    GlobalKey<RefreshFooterState> key,
//  }):super(
//      key: key,
//  );
//
//  @override
//  _FooterViewState createState() => _FooterViewState();
//}
//
//class _FooterViewState extends RefreshFooterState<FooterView> {
//  @override
//  Widget build(BuildContext context) {
//    return Container();
//  }
//}
